package com.gwt.mvp.sample.client.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.gwt.mvp.sample.client.event.ResetViewEvent.ResetViewEventHandler;

public class ResetViewEvent extends GwtEvent<ResetViewEventHandler> {

	public static Type<ResetViewEventHandler> TYPE = new Type<ResetViewEventHandler>();
	
	public interface ResetViewEventHandler extends EventHandler {
		public void onIncrementEntity(ResetViewEvent event);
	}
	
	@Override
	public Type<ResetViewEventHandler> getAssociatedType() {
	  return TYPE;
	}
	
	@Override
	protected void dispatch(ResetViewEventHandler handler) {
	  handler.onIncrementEntity(this);
	}
}
